home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5065 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: sscanf bug??????
  5. Date: Mon, 12 Feb 96 21:28:35 GMT
  6. Organization: none
  7. Distribution: world
  8. Message-ID: <824160515snz@genesis.demon.co.uk>
  9. References: <4fimvo$82s@fnord.dfw.net> <10FEB199622213548@erich.triumf.ca>
  10. Reply-To: fred@genesis.demon.co.uk
  11. X-NNTP-Posting-Host: genesis.demon.co.uk
  12. X-Newsreader: Demon Internet Simple News v1.27
  13. X-Mail2News-Path: genesis.demon.co.uk
  14.  
  15. In article <10FEB199622213548@erich.triumf.ca>
  16.            bennett@erich.triumf.ca "P.Bennett" writes:
  17.  
  18. >Borland says that you need to use "%ld" for long ints in both printf() and 
  19. >scanf().  If ints and longs are the same size (as on many unix systems, I
  20. >believe) "%d" and "%ld" can be used interchangeably, but if they are not the
  21. >same (as on MS-DOS) then it _does_ make a difference.
  22.  
  23. Please, *never* treat %d and %ld as interchangeable or suggest that others
  24. could do so.
  25.  
  26. -- 
  27. -----------------------------------------
  28. Lawrence Kirby | fred@genesis.demon.co.uk
  29. Wilts, England | 70734.126@compuserve.com
  30. -----------------------------------------
  31.